import request from '@/utils/request'

// 查询乡村公益岗列表
export function listRural_public_service_post(query) {
  return request({
    url: '/report/rural_public_service_post/list',
    method: 'get',
    params: query
  })
}

// 查询乡村公益岗详细
export function getRural_public_service_post(id) {
  return request({
    url: '/report/rural_public_service_post/' + id,
    method: 'get'
  })
}

// 新增乡村公益岗
export function addRural_public_service_post(data) {
  return request({
    url: '/report/rural_public_service_post',
    method: 'post',
    data: data
  })
}

// 修改乡村公益岗
export function updateRural_public_service_post(data) {
  return request({
    url: '/report/rural_public_service_post',
    method: 'put',
    data: data
  })
}

// 删除乡村公益岗
export function delRural_public_service_post(id) {
  return request({
    url: '/report/rural_public_service_post/' + id,
    method: 'delete'
  })
}
